home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #4 / Amiga Plus CD - 2000 - No. 4.iso / Tools / Dev / SpeakFreely_Src / gsm / src / gsm_option.c < prev    next >
C/C++ Source or Header  |  2000-05-27  |  749b  |  39 lines

  1. /*
  2.  * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
  3.  * Universitaet Berlin.  See the accompanying file "COPYRIGHT" for
  4.  * details.  THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
  5.  */
  6.  
  7. /* $Header: /home/kbs/jutta/src/gsm/gsm-1.0/src/RCS/gsm_option.c,v 1.1 1992/10/28 00:15:50 jutta Exp $ */
  8.  
  9. #include "private.h"
  10.  
  11. #include "gsm.h"
  12. #include "proto.h"
  13.  
  14. int gsm_option P3((r, opt, val), gsm r, int opt, int * val)
  15. {
  16.     int     result = -1;
  17.  
  18.     switch (opt) {
  19.     case GSM_OPT_VERBOSE:
  20. #ifndef    NDEBUG
  21.         result = r->verbose;
  22.         if (val) r->verbose = *val;
  23. #endif
  24.         break;
  25.  
  26.     case GSM_OPT_FAST:
  27.  
  28. #if    defined(FAST) && defined(USE_FLOAT_MUL)
  29.         result = r->fast;
  30.         if (val) r->fast = !!*val;
  31. #endif
  32.         break;
  33.  
  34.     default:
  35.         break;
  36.     }
  37.     return result;
  38. }
  39.